﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class book
    {
        private string name;
        private string bookName;
        private string press;
        private int id;

        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public string BookName
        {
            get { return this.bookName; }
            set { this.bookName = value; }
        }

        public string Press
        {
            get { return this.press; }
            set { this.press = value; }
        }
        public int Id
        {
            get { return this.id; }
            set { this.id = value; }
        }
        public void book1()
        {
            Console.WriteLine("书名：{0}\t作者：{1}\t出版社：{2}\t编号：{3}", this.BookName,this.Name,this.Press,this.Id);
        }
    }
}
